package view

import android.content.Context
import android.graphics.Color
import android.support.v7.widget.CardView
import android.util.AttributeSet
import android.widget.FrameLayout

class DeliveryView : CardView {
    constructor(context: Context) : super(context)

    constructor(context: Context, attrs: AttributeSet) : super(context, attrs)

    val progress = AutoProgressBarView(context)

    init {
        val params =
            FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT)
        progress.layoutParams = params
        addView(progress)
        setCardBackgroundColor(Color.WHITE)
        radius = 5f
    }


}